home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / rocketbi.swf / scripts / DefineButton2_400 / BUTTONCONDACTION on(rollOver).as < prev   
Encoding:
Text File  |  2011-03-26  |  862 b   |  35 lines

  1. on(rollOver){
  2.    if(_name == 0)
  3.    {
  4.       _parent.nextFrame();
  5.       this.onEnterFrame = function()
  6.       {
  7.          var _loc1_ = _parent;
  8.          if(!_loc1_.hitTest(_root._xmouse,_root._ymouse,true))
  9.          {
  10.             _loc1_.chosen = false;
  11.             _loc1_.prevFrame();
  12.             this.onEnterFrame = null;
  13.          }
  14.       };
  15.    }
  16.    else if(price._currentframe == 1)
  17.    {
  18.       price.gotoAndStop("buy");
  19.    }
  20.    _parent._parent._parent.description.gotoAndStop(_parent._name);
  21.    if(_name != 0)
  22.    {
  23.       _parent._parent._parent.description.item.gotoAndStop(Number(_name) + 1);
  24.       price._visible = true;
  25.       if(_parent[0]._currentframe == _currentframe)
  26.       {
  27.          price.gotoAndStop("used");
  28.       }
  29.       else if(price.price > _root.money)
  30.       {
  31.          price.gotoAndStop("nomoney");
  32.       }
  33.    }
  34. }
  35.